/**
 * =================================================================
 * 版权所有 2011-2013 深圳市泰海网络科技服务有限公司，并保留所有权利
 * -----------------------------------------------------------------
 * 这不是一个自由软件！您不能在任何未经允许的前提下对程序代码进行修改和使用；
 * 不允许对程序代码以任何形式任何目的的再发布
 * =================================================================
 */
package com.imoney.payment.web.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.imoney.framework.base.entity.Response;
import com.imoney.framework.base.exception.ServiceException;
import com.imoney.payment.member.domain.Member;
import com.imoney.payment.member.domain.RegCompleteRequest;
import com.imoney.payment.member.domain.RegRequest;
import com.imoney.payment.web.service.IHessianServiceFactory;
import com.imoney.payment.web.service.IMemberService;

/**
 * 类说明：<br>
 * 
 * <p>
 * 详细描述：<br>
 * 
 * </p>
 * <pre>
 * ——————————————————————————————————————————————————————————————————
 * |		修改人		|		修改时间			|		修改原因
 * ——————————————————————————————————————————————————————————————————
 * |	zengxx 曾宪新	|		2013-8-4		|	
 * ——————————————————————————————————————————————————————————————————
 * </pre>
 * 
 * @author zengxx 曾宪新(Xavier.zeng)
 * 
 * CreateDate: 2013-8-4
 */
@Service(value = "memberService")
public class MemberServiceImpl implements IMemberService {

	@Resource
	private IHessianServiceFactory hessianServiceFactory;
	
	@Override
	public Response<Member> register(RegRequest request) throws ServiceException {
		return hessianServiceFactory.getMemberMgrService().register(request);
	}

	@Override
	public Response<Member> addMember(RegCompleteRequest request)
			throws ServiceException {
		return hessianServiceFactory.getMemberMgrService().addMember(request);
	}

	@Override
	public Member queryMemberById(String loginId) throws ServiceException {
		return hessianServiceFactory.getMemberQueryService().queryMemberById(loginId);
	}

}
